@extends('host.custom.common.common')

@section('c-head')
    <script>
        var PAGE_DATA = {
            userid : "{{ Auth::id() }}"
        };
    </script>
@stop

@section('body')
        <!-- top_test -->
<div id="top_test"></div>

<!-- web_logo_search -->
<div id="web_logo_search"></div>

<!-- comm_nav -->
<div id="comm_nav"></div>

<div class="com-w mt20">
    <div class="wrapper clearfix">
        <div  class="w220 mr20 comm-left-menu">
            <div class="menu-top-title">供应商中心</div>
            <div id="leftmenuitems"></div>
        </div>

        <div class="w960 comm-main">
            <div class="main-release clearfix">
                <div class="main-release-nav">您当前的位置：首页 > 供应商中心 > 导航管理</div>
                <div class="main-release-title">
                    <span class="icons"></span>
                    <span class="release-title-h3 f16">导航管理</span>
                </div>
                <div class="main-release-from" style="min-height: 710px;">
                    <div class="comm-tbl mt20 ">
                        <div class="head">
                            <ul>
                                <li class="wb30">名称</li>
                                <li class="wb30">显示</li>
                                <li class="wb40">操作</li>
                            </ul>
                        </div>

                        <div id="comm_tbl_body" class="body clearfix">

                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<!-- foot_nav -->
<div id="foot_nav"></div>

<div id="bottom_main"></div>

<script type="text/template" id="nav-tmpl">
    <%_.each(obj, function(item){%>

    <ul>
        <li class="wb30">
            <%=item.name%>
        </li>
        <li class="wb30">
            <%if(item.showFlag) {%>
            <span class="i-check-yes margin-mid-auto mt20"></span>
            <%} else {%>
            <span class="i-check-no margin-mid-auto mt20"></span>
            <% }%>
        </li>
        <li class="wb40">
            <div class="btn btn-warn mt15 sel-editor" nav-id="<%=item.id %>">编辑</div>
        </li>
    </ul>

    <%});%>
</script>
editor_temp
<script type="text/template" id="dialog-templ">
    <form action="" method="post" id="edit-dialog">
        <div class="clearfix">
            <div class="clearfix">
                <div class="editor-l wb30 tr lh32">导航名称：</div>
                <div class="editor-r wb70">
                    <input type="text" id="name" name="name" value="<%=name %>"></div>
            </div>
            <div class="clearfix mt10">
                <div class="editor-l wb30 tr lh32">显示：</div>
                <div class="editor-r1 wb70">
                    <label class="lh32">
                        <input name="showflag" type="radio" value="1" id="show-1" <% if(!!showFlag) {  %> checked <% } %> />是</label>
                    <label class="lh32">
                        <input name="showflag" type="radio" value="0" id="show-0" <% if(!showFlag) {  %> checked <% } %> />否</label>
                </div>
            </div>
            <div class="clearfix mt10" style="min-height: 200px;">
                <textarea id="container" name="detail"></textarea>
            </div>
            <div class="tc mt50">
                <div class="btn btn-warn btn-w140x40" id="sub-btn">提交</div>
            </div>
        </div>
    </form>
</script>


<script type="text/javascript" src="/assets/b2b/js/libs/dialog-min.js"></script>
<script type="text/javascript" src="/assets/b2b/js/libs/editor/ueditor.config.js"></script>
<script type="text/javascript" src="/assets/b2b/js/libs/editor/ueditor.all.js"></script>
<script type="text/javascript" charset="utf-8" src="/assets/b2b/js/libs/editor/lang/zh-cn/zh-cn.js"></script>

<script type="text/javascript" src="/assets/b2b/js/libs/jquery.validate.min.js"></script>
<script src="/assets/b2b/js/libs/messages_zh.js"></script>

<script src="/assets/b2b/js/pageModules/supplyer/S20.js"></script>

@stop